#bool类型Gamerule如果为False运行

$execute store result score util.bool temp run data get storage dab:system gameRule[{id:"$(gamerule_id)"}].switch

#run:
$execute if score util.bool temp matches 0 run function util:run_command {command:"$(run)"}

scoreboard players reset util.bool temp